package bom.dao.organization;


import bom.dao.GenericDao;
import bom.pojo.organization.RoleAssociateTree;
import bom.pojo.organization.Tree;
import bom.pojo.organization.UserRole;
import bom.pojo.query.QueryRoleAssociateTree;
import org.apache.ibatis.annotations.Mapper;

/**
 * @Author: Fancyears·Maylos·Malvis
 * @Description:
 * @Date: Created in  2018/11/27 15:08
 * @Modified By:
 */
@Mapper
public interface RoleAssociateTreeDao extends GenericDao<RoleAssociateTree, QueryRoleAssociateTree> {

    /**
     * 功能描述：根据菜单ID来删除关联的菜单数据
     *
     * @param tree
     * @return
     */
    int removeTreeByTreeId(Tree tree);

    /**
     * 功能描述：根据角色ID来删除关联的菜单数据
     *
     * @param userRole
     * @return
     */
    int removeTreeByRoleId(UserRole userRole);
}